#!/usr/bin/env python
#coding:utf-8
import wx
import wx.html

class wpAbout(wx.Dialog):

    text = '''
<html>
<body>
<center><table WIDTH="100%" CELLSPACING="0"
CELLPADDING="0" BORDER="0">
<TR>
<TD ALIGN="CENTER"><H2>wxBlog</H2></TD>
</TR>
</TABLE>
</CENTER>
<P><CENTER><B>wxBlog</B> 是一款用
<B>WXPYTHON</B>开发的Wordpress离线Blog编辑器。</CENTER>
</P>
<P><CENTER>
COPYRIGHT
&COPY; 2011.</CENTER></P>
<P><CENTER>
<A HREF="http://code.google.com/p/python-wp-blog/">项目网站</a></center>
</p>
</body>
</html>
'''

    def __init__(self, parent):
        wx.Dialog.__init__(self, parent, -1, 'About Sketch',
                          size=(440, 260) )

        html = wx.html.HtmlWindow(self)
        html.SetPage(self.text)
        button = wx.Button(self, wx.ID_OK, "Okay")

        sizer = wx.BoxSizer(wx.VERTICAL)
        sizer.Add(html, 1, wx.EXPAND|wx.ALL, 5)
        sizer.Add(button, 0, wx.ALIGN_CENTER|wx.ALL, 5)

        self.SetSizer(sizer)
        self.Layout()
